package com.lance.answer.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 一体化的考试信息
 */
@NoArgsConstructor
@Data
public class TestingInfo {


    @JsonProperty("code")
    private String code;
    @JsonProperty("content")
    private ContentDTO content;
    @JsonProperty("ts")
    private Long ts;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("item")
        private List<ItemDTO> item;
        @JsonProperty("ruleId")
        private String ruleId;

        @NoArgsConstructor
        @Data
        public static class ItemDTO {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("examineId")
            private Integer examineId;
            @JsonProperty("paperUid")
            private String paperUid;
            @JsonProperty("paperName")
            private String paperName;
            @JsonProperty("questionNum")
            private Integer questionNum;
            @JsonProperty("score")
            private Integer score;
            @JsonProperty("hasSubjective")
            private Integer hasSubjective;
            @JsonProperty("createTime")
            private Long createTime;
            @JsonProperty("creator")
            private String creator;
            @JsonProperty("creatorName")
            private String creatorName;
            @JsonProperty("modifyTime")
            private Long modifyTime;
            @JsonProperty("modifier")
            private String modifier;
            @JsonProperty("modifierName")
            private String modifierName;
            @JsonProperty("complete")
            private Integer complete;
        }
    }
}
